package com.hualan.service;

import com.hualan.mapper.ZixunyuyueMapper;
import com.hualan.pojo.Consultants;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class ZixunyuyueServiceImpl implements ZixunyuyueService{
    @Autowired
    private ZixunyuyueMapper zixunyuyueMapper;

    @Transactional
    public Integer addzixun(Integer uid,Integer tid, String level, String zixunleibie, String time, String neirong) {
        return zixunyuyueMapper.addzixun(uid,tid,level,zixunleibie,time,neirong);
    }

    public List<Consultants> listAll(String level, String selected) {
        return zixunyuyueMapper.listAll(level,selected);
    }

    @Transactional
    public Integer addshouye(Integer uid, Integer tid, String level, String zixunleibie, String time, String neirong) {
        return zixunyuyueMapper.addshouye(uid,tid,level,zixunleibie,time,neirong);
    }
}
